[Ivy]
[>Created: Mon Jun 30 16:11:05 ICT 2014]
146EB903B9BCB2AB 3.17 #module
>Proto >Proto Collection #zClass
Ls0 LoginProcess Big #zClass
Ls0 RD #cInfo
Ls0 #process
Ls0 @TextInP .ui2RdDataAction .ui2RdDataAction #zField
Ls0 @TextInP .rdData2UIAction .rdData2UIAction #zField
Ls0 @TextInP .resExport .resExport #zField
Ls0 @TextInP .type .type #zField
Ls0 @TextInP .processKind .processKind #zField
Ls0 @AnnotationInP-0n ai ai #zField
Ls0 @TextInP .xml .xml #zField
Ls0 @TextInP .responsibility .responsibility #zField
Ls0 @RichDialogInitStart f0 '' #zField
Ls0 @RichDialogProcessEnd f1 '' #zField
Ls0 @PushWFArc f2 '' #zField
Ls0 @RichDialogMethodStart f3 '' #zField
Ls0 @Alternative f6 '' #zField
Ls0 @RichDialogEnd f7 '' #zField
Ls0 @RichDialogProcessEnd f8 '' #zField
Ls0 @PushWFArc f11 '' #zField
Ls0 @PushWFArc f14 '' #zField
Ls0 @GridStep f4 '' #zField
Ls0 @PushWFArc f5 '' #zField
Ls0 @PushWFArc f9 '' #zField
Ls0 @InfoButton f10 '' #zField
>Proto Ls0 Ls0 LoginProcess #zField
Ls0 f0 guid 0146EB903BA6512A #txt
Ls0 f0 type ch.soreco.training.common.Login.LoginData #txt
Ls0 f0 method start() #txt
Ls0 f0 disableUIEvents true #txt
Ls0 f0 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<> param = methodEvent.getInputArguments();
' #txt
Ls0 f0 outParameterDecl '<> result;
' #txt
Ls0 f0 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>start()</name>
        <nameStyle>7,5,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ls0 f0 86 54 20 20 13 0 #rect
Ls0 f0 @|RichDialogInitStartIcon #fIcon
Ls0 f1 type ch.soreco.training.common.Login.LoginData #txt
Ls0 f1 86 150 20 20 13 0 #rect
Ls0 f1 @|RichDialogProcessEndIcon #fIcon
Ls0 f2 expr out #txt
Ls0 f2 96 74 96 150 #arcP
Ls0 f3 guid 146EBC11BA6700F2 #txt
Ls0 f3 type ch.soreco.training.common.Login.LoginData #txt
Ls0 f3 method doLogin() #txt
Ls0 f3 disableUIEvents false #txt
Ls0 f3 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<> param = methodEvent.getInputArguments();
' #txt
Ls0 f3 outParameterDecl '<> result;
' #txt
Ls0 f3 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>doLogin()</name>
    </language>
</elementInfo>
' #txt
Ls0 f3 374 62 20 20 13 -25 #rect
Ls0 f3 @|RichDialogMethodStartIcon #fIcon
Ls0 f6 type ch.soreco.training.common.Login.LoginData #txt
Ls0 f6 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>isSucess</name>
        <nameStyle>8,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ls0 f6 370 122 28 28 14 -15 #rect
Ls0 f6 @|AlternativeIcon #fIcon
Ls0 f7 type ch.soreco.training.common.Login.LoginData #txt
Ls0 f7 guid 146EBC1EEF49D69C #txt
Ls0 f7 454 238 20 20 13 0 #rect
Ls0 f7 @|RichDialogEndIcon #fIcon
Ls0 f8 type ch.soreco.training.common.Login.LoginData #txt
Ls0 f8 302 238 20 20 13 0 #rect
Ls0 f8 @|RichDialogProcessEndIcon #fIcon
Ls0 f11 expr in #txt
Ls0 f11 .xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Yes</name>
        <nameStyle>3,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ls0 f11 396 138 464 238 #arcP
Ls0 f11 1 464 152 #addKink
Ls0 f11 0 1.0 15 7 #arcLabel
Ls0 f14 expr out #txt
Ls0 f14 384 82 384 122 #arcP
Ls0 f4 actionDecl 'ch.soreco.training.common.Login.LoginData out;
' #txt
Ls0 f4 actionTable 'out=in;
' #txt
Ls0 f4 actionCode 'import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
FacesContext fc = FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Username or password is incorrect!", null));' #txt
Ls0 f4 type ch.soreco.training.common.Login.LoginData #txt
Ls0 f4 294 180 36 24 20 -2 #rect
Ls0 f4 @|StepIcon #fIcon
Ls0 f5 expr in #txt
Ls0 f5 outCond !ivy.session.loginSessionUser(in.username,in.password) #txt
Ls0 f5 .xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>No</name>
        <nameStyle>2,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ls0 f5 373 139 312 180 #arcP
Ls0 f5 1 312 152 #addKink
Ls0 f5 0 1.0 -9 -5 #arcLabel
Ls0 f9 expr out #txt
Ls0 f9 312 204 312 238 #arcP
Ls0 f10 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>Close login and open Mail App</name>
        <nameStyle>29,7
</nameStyle>
    </language>
</elementInfo>
' #txt
Ls0 f10 480 171 177 26 -83 -8 #rect
Ls0 f10 @|IBIcon #fIcon
Ls0 f10 -1|-1|-16777216 #nodeStyle
>Proto Ls0 .type ch.soreco.training.common.Login.LoginData #txt
>Proto Ls0 .processKind HTML_DIALOG #txt
>Proto Ls0 -8 -8 16 16 16 26 #rect
>Proto Ls0 '' #fIcon
Ls0 f0 mainOut f2 tail #connect
Ls0 f2 head f1 mainIn #connect
Ls0 f11 head f7 mainIn #connect
Ls0 f3 mainOut f14 tail #connect
Ls0 f14 head f6 in #connect
Ls0 f6 out f5 tail #connect
Ls0 f5 head f4 mainIn #connect
Ls0 f6 out f11 tail #connect
Ls0 f4 mainOut f9 tail #connect
Ls0 f9 head f8 mainIn #connect
